egl: Set the draw buffer to GL_BACK_LEFT
authorBenjamin Otte <otte@redhat.com>
Wed, 3 Nov 2021 18:49:57 +0000 (19:49 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 3 Nov 2021 21:53:59 +0000 (22:53 +0100)
commitbca77b55059b7775ff97b31d4bbaded7f7916fa4
tree6b2565163c37bdc8b4e33f5668f5bbbc23ea4b60
parent37cbd0662e3cbbb7abff7bfc765884fb19eba71d
egl: Set the draw buffer to GL_BACK_LEFT

Instead of using GL_BACK, use GL_BACK_LEFT, because the spec demands
this (many drivers don't).

Also move the call from the GDK backends into the GLContext code, as
this is a generic EGL issue (nvidia being the main driver in need of
this call, see 9c4c4eaaa121d784f591a591b95264647eaece96 for a longer
discussion).

Fixes #4402
gdk/gdkglcontext.c
gdk/wayland/gdkglcontext-wayland.c
gdk/x11/gdkglcontext-egl.c